package thinkingJava.chapter18;

import static util.Print.*;

import java.io.File;

public class DirectoryDemo {
	public static void main(String[] args) {
		PPrint.pprint(Directory.walk(".").dirs);
		for (File file : Directory.local(".", "T.*")) {
			print(file);
		}
		print("--------------------------------------");
		for (File file : Directory.walk(".", "T.*\\.java")) {
			print(file);
		}
		print("=============================");
		for (File file : Directory.walk(".",".*[Zz].*\\.class")) {
			print(file);
		}
	}
}
